﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Engine.Helpers
{
    public static class BoolExtensions
    {
        public static float ToFloat(this bool b)
        {
            return b ? 1.0f : 0.0f;
        }

        public static float ToInt32(this bool b)
        {
            return b ? 1 : 0;
        }
    }
}
